<?php
$ms  = $this->c->home_timeline(); // done

?>
<h2>发送新微博</h2>
<form action="" method="post">
<input type="text" name="text" style="width:300px" />
&nbsp;<input type="submit" />
</form>
<?php

if( isset($_POST['text']) )
{
$this->c->update( $_POST['text'] );
// 发送微博
echo "<p>发送完成</p>";

}

?>

<?php if( is_array( $ms ) ): ?>
<?php foreach( $ms as $item ): ?>
<div style="padding:10px;margin:5px;border:1px solid #ccc">
<?=$item['text'];?>
</div>
<?php endforeach; ?>
<?php endif; ?>